# -*- coding: utf-8 -*-(for Scipe)
DEF $VA  $VB  # vtail left /right
# input variables are prof rud brake

#____V-tail________________________________________
# variables tailL and tailR
prof.tail:  INIT 50.00
rud.tail.D: INIT 50.00
rud.tail.U: INIT 50.00
#brake.prof: INIT  0
tailR   SUBAS rud  rud.tail.D:  rud.tail.U:   #tail right  +=down -=up $diff
tailL   ADDAS rud  rud.tail.U:  rud.tail.D:    #tail left,+=down -=up
tailR	ADDS  prof   prof.tail:	
tailL	ADDS  prof   prof.tail:	
#tailR	ADDS  brake  brake.prof:
#tailL	ADDS  brake  brake.prof:		

tailR.U: INIT 100.00
tailR.C: INIT 0
tailR.D: INIT -100

tailL.U: INIT 100.00
tailL.C: INIT 0
tailL.D: INIT -100
tailL.s	SERV tailL tailL.D: tailL.C: tailL.U:
tailR.s	SERV tailR tailR.D: tailR.C: tailR.U:

@V$VA	OUTN tailL.s 	1.55 .55
@V$VB   OUTN tailR.s   	1.55 .55 

